Objects Reference

textcache::use

Prototype

virtual void use(int pic=-1,int textunit=0)=0

Parameters

Parameter Type Description
pic int picture index to select
textunit int texture unit to select

Return Value

None

Remarks

This virtual function selects a picture to be used in the specified texture unit. The texture unit remains selected and active after the call. Calling this function with pic=-1 will disable texturing in the specified texture unit. The number of texture units available is at the ntextureunits global variable.